package com.zc.im.seqsvr.domain;

import com.zc.im.common.constant.enums.BaseEnum;
import com.zc.im.common.r2dbc.domain.AbstractBase;
import com.zc.im.common.util.EnumUtil;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.data.relational.core.mapping.Table;

/**
 * Project：im
 * Date：2022-04-20
 * Time：20:39
 * Description：TODO
 *
 * @author ChallenZhang
 * @version 1.0
 */
@Getter
@Setter
@Table("im_test")
@NoArgsConstructor
public class Test extends AbstractBase {

    private StatusEnum status;

    public enum StatusEnum implements BaseEnum<Integer> {
        /**
         *
         */
        A(1);
        private final int value;

        StatusEnum(int value) {
            this.value = value;
        }

        @Override
        public Integer getValue() {
            return value;
        }
    }

}
